.color-red {
  color: #ff3b30 !important;
}

.order-index {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 152px;
  box-sizing: border-box;

  .near-store {
    display: flex;
    justify-content: space-between;
    padding: 24rpx 24rpx;
    color: #666;
    background: #fff;
    font-size: 28rpx;

    &--change {
      color: #12b3ff;
      margin-left: 5rpx;
    }
  }

  .annual-area-tips {
    text-align: center;
    padding: 0 24px;
    font-size: 28px;
    padding-top: 20px;
    color: #ff9800;
    font-size: 28rpx;
    text-align: center;
  }

  .annaul-tips {
    font-size: 26px;
    color: #666;
    padding: 24px 24px 0;
  }

  .margin-top20 {
    margin-top: 20px;
  }

  .text-area-warp {
    background: #fff;
    padding: 24px;
    font-size: 30px;
    font-weight: 500;
    color: #333333;
  }

  .text-area {
    background-color: #fff;
    padding: 0 24px 24px;

    .text {
      width: 100%;
      min-height: 210px;
      font-size: 30px;
      background: #f5f5f5;
      padding: 24px;
      box-sizing: border-box;
    }
  }

  .handle-cont {
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
    padding: 24px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;

    &-annual {
      display: flex;
      align-items: center;
      font-size: 24px;

      &-img {
        display: block;
        width: 40px;
        height: 40px;
        margin-right: 10px;
      }

      &-point {
        color: #ff3b30;
      }
    }

    &-pay {
      display: flex;
      align-items: center;
      justify-content: space-between;

      .price {
        font-size: 24px;
        color: #333;
        display: flex;
        align-items: baseline;

        .strong {
          margin-left: 8px;
          color: #ff3b30;
          font-size: 42px;

          &::before {
            content: "￥";
            font-size: 20px;
          }
        }

        .unit {
          margin-left: 8px;
          color: #ff3b30;
          font-size: 20px;
        }
      }

      .btn {
        background-color: #12b3ff;
        color: #fff;
        width: 200px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        border-radius: 10px;
      }

      .btn-forbidden {
        @extend .btn;
        background-color: #cccccc;
        color: #ffffff;
      }
    }
  }

  .pay-success-dialog {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;

    .mask {
      z-index: 101;
      position: fixed;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      background: rgba($color: #000000, $alpha: 0.77);
    }

    .content {
      position: fixed;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;

      &-wrap {
        z-index: 102;
        padding: 24rpx;
        background: #fff;
        width: 72%;
        border-radius: 20px;

        &-h {
          display: flex;
          justify-content: center;
          align-items: center;
          padding: 64rpx 0 34rpx 0;

          .icon {
            width: 104rpx;
            height: 80rpx;
          }

          &-r {
            display: flex;
            flex-direction: column;
            justify-content: center;
            margin-left: 4rpx;

            .text1 {
              color: #333333;
              font-size: 34px;
            }

            .text2 {
              color: #666;
              font-size: 24px;
            }
          }
        }

        &-tips {
          color: #666;
          font-size: 24px;
          text-align: center;
        }

        &-action {
          display: flex;
          flex-direction: column;
          justify-content: center;

          &-btn {
            width: 100%;
            height: 100px;
            line-height: 99px;
            text-align: center;
            color: #fff;
            background: #12b3ff;
            font-size: 32px;
            border-radius: 24px;
            margin-top: 24px;

            &:active {
              opacity: 0.4;
            }
          }

          &-btn2 {
            width: 100%;
            height: 100px;
            line-height: 99px;
            text-align: center;
            font-size: 28px;
            margin-top: 24px;
            color: #333;
          }
        }
      }
    }
  }
}

.annual-name {
  height: 134px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  // align-items: center;
  background-color: #fff;
  border-bottom: 2px solid #e5e5e5;

  .goods-name {
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 42px;
    color: #333333;
    font-size: 30px;
  }

  .vailday {
    padding-left: 26px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 2px solid #e5e5e5;
    box-sizing: border-box;
    height: 100%;

    .span {
      color: #333;
      font-size: 26px;
    }

    .tips {
      font-size: 20px;
      color: #666;
      padding-top: 4px;
    }
  }
}

.pop-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  z-index: 99;
  visibility: hidden;

  &.show {
    visibility: visible;
  }

  .mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: rgba($color: #000000, $alpha: 0.8);
  }

  .pop-title-hd {
    position: relative;
    z-index: 2;
    padding: 32px 24px;
    background-color: #fff;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #333;
    font-weight: bold;
    flex-shrink: 0;

    .cancel-btn {
      position: absolute;
      top: 32px;
      left: 24px;
      font-size: 32px;
      color: #333;
      font-weight: 400;
    }
  }

  .pop-cont {
    position: relative;
    z-index: 2;
    border-radius: 36px 36px 0 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    .pop-cont-bd {
      padding: 24px;
      box-sizing: border-box;
      flex: 1 1 auto;
      display: flex;
      justify-content: space-between;
      flex-direction: column;
      background-color: #f5f5f5;
      overflow: hidden;
    }
  }

  .coupon {
    height: 80vh;

    .pop-cont-bd {
      height: calc(80vh - 88px - 122px);
    }

    .coupon-scroll {
      height: calc(100% - 94px - 30px);
      margin-bottom: 30px;
    }

    .list {
      position: relative;
      overflow: hidden;

      &.gray {
        -webkit-filter: grayscale(100%);
        filter: grayscale(100%);
      }

      &.curr {
        .check {
          display: block;
        }
      }

      .check {
        position: absolute;
        bottom: 20px;
        right: 0;
        width: 72px;
        height: 56px;
        display: none;
      }
    }
  }

  .list-wrap {
    margin-bottom: 32px;

    .list {
      position: relative;
      min-height: 120px;
      width: 100%;
      background-color: #fff;
      border-radius: 12px;
      padding: 24px;
      box-sizing: border-box;
      font-size: 30px;
      color: #333;
      display: flex;
      align-items: center;
      overflow: hidden;
      margin-bottom: 24px;

      &.curr {
        .check {
          display: block;
        }
      }

      .check {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 72px;
        height: 56px;
        display: none;
      }
    }
  }

  .pop-confirm-btn {
    width: 100%;
    height: 94px;
    background-color: #12b3ff;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;

    &.disabled {
      background-color: rgba(229, 229, 229, 1);
      color: #999999;
    }
  }
}

.tab-item {
  height: 88px;
  background-color: #fff;
  display: flex;
  flex-shrink: 0;

  .tab-li {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    &.act {
      .tab-li-text {
        color: #12b3ff;

        &::after {
          display: block;
        }
      }
    }

    .tab-li-text {
      position: relative;
      font-size: 28px;
      font-weight: 500;
      color: rgba(153, 153, 153, 1);

      &::after {
        position: absolute;
        left: 0;
        bottom: -8px;
        content: "";
        width: 100%;
        height: 4px;
        background: rgba(18, 179, 255, 1);
        border-radius: 2px;
        display: none;
      }
    }
  }
}

.store-modal {
  background: #f5f5f5;
  padding: 24px 0;
  display: flex;
  align-items: center;
  margin-top: 24px;
  border-radius: 8px;

  .left {
    width: calc(100% - 100px);
    border-right: 1px solid #e5e5e5;
    padding: 0 24px;
    box-sizing: border-box;

    .store-name {
      font-size: 28px;
      font-weight: bold;
      margin-bottom: 10px;
    }

    .store-address {
      font-size: 20px;
      color: #999;
    }

    .store-tips {
      font-size: 20px;
      color: #000;
      margin-top: 10px;


      &.warning {
        color: #ff3b30;
      }
    }
  }

  .right {
    font-size: 26px;
    color: #666;
    width: 100px;
    text-align: center
  }
}

.pay-success-dialog {
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;

  .mask {
    z-index: 101;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba($color: #000000, $alpha: 0.77);
  }

  .content {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;

    &-wrap {
      z-index: 102;
      padding: 24rpx;
      background: #fff;
      width: 72%;
      border-radius: 20px;

      &-h {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 64rpx 0 34rpx 0;

        .icon {
          width: 104rpx;
          height: 80rpx;
        }

        &-r {
          display: flex;
          flex-direction: column;
          justify-content: center;
          margin-left: 4rpx;

          .text1 {
            color: #333333;
            font-size: 34px;
          }

          .text2 {
            color: #666;
            font-size: 24px;
          }
        }
      }

      &-tips {
        color: #666;
        font-size: 24px;
        text-align: center;
      }

      &-action {
        display: flex;
        flex-direction: column;
        justify-content: center;

        &-btn {
          width: 100%;
          height: 100px;
          line-height: 99px;
          text-align: center;
          color: #fff;
          background: #12b3ff;
          font-size: 32px;
          border-radius: 24px;
          margin-top: 24px;

          &:active {
            opacity: 0.4;
          }
        }

        &-btn2 {
          width: 100%;
          height: 100px;
          line-height: 99px;
          text-align: center;
          font-size: 28px;
          margin-top: 24px;
          color: #333;
        }
      }
    }
  }
}

.list-wrap {
  display: flex;

  .list {
    position: relative;
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    padding: 12px 30px;
    box-sizing: border-box;
    font-size: 28px;
    color: #333;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-left: 20px;

    &.curr {
      .check {
        display: block;
      }
    }

    .check {
      position: absolute;
      bottom: -1px;
      right: -1px;
      width: 50px;
      height: 40px;
      display: none;
    }
  }
}

.offline-tips {
  background: rgba(253, 232, 200, 1);
  color: #F59A23;
  padding: 8px 24px;
  font-size: 26px;
}
